package b.pay.impl

import akka.event.slf4j.SLF4JLogging
import b.pay.api.T收付Service
import b.third.impl.T第三方支付Service
import com.lightbend.lagom.scaladsl.server.{LagomApplication, LagomApplicationContext, LagomServer}
import com.softwaremill.macwire._
import play.api.libs.ws.ahc.AhcWSComponents

/**
  * Created by lenovo on 2017/1/24.
  */
abstract class AC收付Application(context: LagomApplicationContext) extends LagomApplication(context)
  with AhcWSComponents with SLF4JLogging {

  override lazy val lagomServer: LagomServer = LagomServer.forServices(
    bindService[T收付Service].to(wire[C收付ServiceImpl])
  )

  lazy val v第三方支付Service: T第三方支付Service = serviceClient.implement[T第三方支付Service]

}
